Given variables, print as string

Given variables x=30 and y=20, write a python program to print “30 + 20 = 50”.
x = 30
y = 20

print("%d + %d = %d" % (x, y, x + y))

Output:

30 + 20 = 50